Skip to content

Remove race in ensure remote connection test#72961

Merged
Tim-Brooks merged 1 commit into
elastic:6.8from
Tim-Brooks:fix_remote_cluster_ensure
Jun 9, 2021
Merged

Remove race in ensure remote connection test#72961
Tim-Brooks merged 1 commit into
elastic:6.8from
Tim-Brooks:fix_remote_cluster_ensure

Conversation

@Tim-Brooks
Copy link
Copy Markdown
Contributor

Currently RemoteClusterConnectionTests#testEnsureConnected uses the same
countdown latch for two ensure connected method calls. This introduces a
race where the test ends before the second ensure connected method
executes. This causes an exception to be thrown and the test to fail.
This commit resolves the issue by adding a second latch.

Fixes #71519.

Currently RemoteClusterConnectionTests#testEnsureConnected uses the same
countdown latch for two ensure connected method calls. This introduces a
race where the test ends before the second ensure connected method
executes. This causes an exception to be thrown and the test to fail.
This commit resolves the issue by adding a second latch.

Fixes elastic#71519.
@Tim-Brooks Tim-Brooks added >test Issues or PRs that are addressing/adding tests :Distributed/Network Http and internode communication implementations v6.8.16 labels May 12, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label May 12, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@henningandersen henningandersen self-requested a review June 9, 2021 08:54
Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Tim-Brooks Tim-Brooks merged commit c3ea8df into elastic:6.8 Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v6.8.16

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants